Skip to content

Configure standby callback to polling #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 19, 2025

Conversation

mahendrapaipuri
Copy link
Contributor

@mahendrapaipuri mahendrapaipuri commented May 14, 2025

  • The standby callback will put poll in standby mode when connection to the server is lost. Useful in JupyterHub deployments. See discourse thread.
  • Drop support for Python 3.8 and add support for 3.12 and 3.13
  • Bump actions versions in CI workflows

Closes #246, #245

@jtpio Can you please take a look at it when you get some time? Cheers!

mahendrapaipuri and others added 5 commits May 14, 2025 14:32
* The callback will monitor the connection status and when connection is lost, it will put the poll in standby mode.

* This ensures that on JupyterHub deployments, the terminated servers will not make any API requests to hub which can pollute the logs

Signed-off-by: Mahendra Paipuri <[email protected]>
* By removing `interval`, the function returns immediately without blocking

Signed-off-by: Mahendra Paipuri <[email protected]>
* Remove Python 3.8 and add 3.12, 3.13 in classifiers. Inline with JupyterLab

Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
Copy link
Collaborator

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor typing suggestion

Address PR comments

Co-authored-by: Michał Krassowski <[email protected]>
@krassowski krassowski merged commit f2ea922 into jupyter-server:main Aug 19, 2025
18 of 19 checks passed
@jtpio
Copy link
Member

jtpio commented Aug 19, 2025

Oh, it looks like this one fell through the cracks.

Thanks @mahendrapaipuri for the PR and @krassowski for the review!

@krassowski
Copy link
Collaborator

I will release this as v1.2.0.

@krassowski
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

don't prevent users from using newer versions of psutil
3 participants